<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="./user.js">

  </script>
  <link rel="stylesheet" href="index.css">
  <style>

  </style>
</head>
<body>
<div>
  <div class="header">
    <h1>USER表</h1>
  </div>
  <div class="topnav">
    <a href="course.html">COURSE表</a>
    <a href="mark.html">MARK表</a>
  </div>

  <div  id="part2" class="column">
    <form>
      <div style="margin-bottom:10px">
        <label for="id">id</label>
        <input id="id" type="text" placeholder="输入id" name="id" class="in">
      </div>
      <div style="margin-bottom:10px">
        <label for="name">name</label>
        <input id="name" type="text" placeholder="输入名字" name="name" class="in">
      </div>
      <div style="margin-bottom:10px">
        <label for="pwd">密码</label>
        <input id="pwd" type="text" placeholder="输入密码" name="pwd" class="in">
      </div>
      <div style="margin-bottom:10px">
        <label for="lesson">课程</label>
        <input id="lesson" type="text" placeholder="输入课程" name="lesson" class="in">
      </div>
      <div style="margin-bottom:10px">
        <label for="sex">性别</label>
        <input id="sex" type="text" placeholder="输入性别" name="sex" class="in">
      </div>


      <div id="but" style="margin-bottom:10px" >
        <input type="button" value="添加" onclick="add2()" class="btn">
        <input type="button" value="刷新" onclick="refresh2()" class="btn">
        <input type="button" value="查询" onclick="getById2()" class="btn">
        <input type="button" value="确认修改" onclick="onUpdate2()" class="btn">
        <form action="upload" method="post" enctype="multipart/form-data">
          <input type="file" name="uploadFile" value="请选择文件">
          <input type="submit" value="上传">
        </form>
      </div>
    </form>
    <table>
      <thead>
      <tr>
        <th>id</th>
        <th>名字</th>
        <th>密码</th>
        <th>课程</th>
        <th>性别</th>
        <th>操作</th>
      </tr>
      </thead>
      <tbody id="users">
      </tbody>
    </table>
  </div>

</div>

</body>
</html>